﻿.rating {
    margin-bottom: 0;
    height: 1.5rem;

    p {
        display: inline-block;
        margin-left: .5rem;
        font-size: .875rem;
        line-height: 1.5rem !important;
        height: 1.5rem !important;
        position: relative;
        top: 0;
        left: 0;
    }
}

.star-rating {
    position: relative;
    top: 0;
    float: left;
    width: auto;
    height: 1.5rem;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
    background-position: left top;

    li {
        display: inline;
    }

    a, .current-rating {
        position: absolute;
        top: 0;
        left: 0;
        text-indent: -1000em;
        height: 1.5rem;
        line-height: 1.5rem;
        outline: none;
        overflow: hidden;
        border: none;
    }

    a {
        &:hover, &:active, &:focus {
            background-position: left bottom;
        }

        &.one-star {
            width: 20%;
            z-index: 6;
        }

        &.two-stars {
            width: 40%;
            z-index: 5;
        }

        &.three-stars {
            width: 60%;
            z-index: 4;
        }

        &.four-stars {
            width: 80%;
            z-index: 3;
        }

        &.five-stars {
            width: 100%;
            z-index: 2;
        }
    }

    .current-rating {
        z-index: 1;
        background-position: left center;
    }
}

.small-star {
    width: 120px;
    height: 1.5rem;
    line-height: 1.5rem;
    height: 1.5rem;

    a {
        &:hover, &:active, &:focus {
            line-height: 1.5rem;
            height: 1.5rem;
        }
    }

    .current-rating {
        line-height: 1.5rem;
        height: 1.5rem;
    }
}

.small-star, .small-star a:hover, .small-star a:active, .small-star a:focus, .small-star .current-rating {
    background-image: url();
}
